<?php

use yii\db\Migration;

/**
 * Class m180104_054533_add_column_to_project_investigation_stakeholder_table
 */
class m180104_054533_add_column_to_project_investigation_stakeholder_table extends Migration
{
    /**
     * @inheritdoc
     */
    public function safeUp()
    {
        $this->addColumn('project_investigation_stakeholder','update_log', $this->text()->comment('变更记录 '));
        $this->addColumn('project_investigation_stakeholder','other_guarantee',$this->text()->comment('抵押物外其他承债资产'));
        $this->addColumn('project_investigation_stakeholder','identical_price',$this->string()->comment('同类型司法拍卖资产价格'));
        $this->addColumn('project_investigation_stakeholder','recently_price',$this->string()->comment('访谈中介最近成交价及快速转让价'));
        $this->addColumn('project_investigation_stakeholder','buyer_price',$this->string()->comment('买家报价'));
        $this->addColumn('project_investigation_stakeholder','rental_price',$this->text()->comment('租金情况及其他可比物业'));
        $this->addColumn('project_investigation_stakeholder','tax_price',$this->string()->comment('税费'));
    }

    /**
     * @inheritdoc
     */
    public function safeDown()
    {
        echo "m180104_054533_add_column_to_project_investigation_stakeholder_table cannot be reverted.\n";

        return false;
    }

    /*
    // Use up()/down() to run migration code without a transaction.
    public function up()
    {

    }

    public function down()
    {
        echo "m180104_054533_add_column_to_project_investigation_stakeholder_table cannot be reverted.\n";

        return false;
    }
    */
}
